#ifndef __MODEL_H__
#define __MODEL_H__

#include <iostream>
#include <string>
#include "glm/glm.h"

enum MODEL_TYPE {AIRCRAFT1, AIRCRAFT2, TANK_PROJECT, TURRET_BARREL, TURRET_BASE};

class Model
{
private:
	GLMmodel* model;
	float width;
	float height;
	float depth;
public:
	Model()
	{
		std::cout<<"Input the Model file name"<<std::endl;
	}
	Model(std::string filename)
	{
		std::cout<<const_cast<char*>(filename.c_str());
		model = glmReadOBJ(const_cast<char*>(filename.c_str()));
		glmUnitize(model);
		float temp[3];
		glmDimensions(model, temp);
		width = temp[0];
		height = temp[1];
		depth = temp[2];
	}
	float get_width() { return width; }
	float get_height() { return height; }
	float get_depth() { return depth; }
	GLMmodel* get_model() { return model; }
};
#endif